package com.hdculture.apis.grapi;

public class Graph {
	
	private double[] xPoint, yPoint, value;
	private int graphColor;
	private int graphID;
	private int barWidth=10;
	private boolean shading=true;
	private String type=LINE;
	
	public static final String LINE = "LINE";
	public static final String BAR = "BAR";
	
	
	public Graph(int graphID, double[] value, int graphColor, String type, boolean shading){
		this.graphID=graphID;
		this.value = value;
		this.graphColor = graphColor;
		this.type = type;
		this.shading = shading;
	}
	
	public int getBarWidth(){
		return barWidth*2;
	}
	
	public void setBarWidth(int width){
		this.barWidth = width/2;
	}
	
	public void setType(String type){
		this.type = type;
	}
	
	public String getType(){
		return type;
	}
	public boolean getShading(){
		return shading;
	}
	
	public void setShading(boolean shading){
		this.shading = shading;
	}
	
	public double[] getxPoint() {
		return xPoint;
	}

	public void setxPoint(double[] xPoint) {
		this.xPoint = xPoint;
	}

	public double[] getyPoint() {
		return yPoint;
	}

	public void setyPoint(double[] yPoint) {
		this.yPoint = yPoint;
	}

	public double[] getValue() {
		return value;
	}

	public void setValue(double[] value) {
		this.value = value;
	}

	public int getGraphID() {
		return graphID;
	}

	public void setGraphID(int graphID) {
		this.graphID = graphID;
	}
	
	public int getGraphColor(){
		return graphColor;
	}
}
